package com.aabte.auth.role.infrastructure.persistence;

import com.aabte.auth.role.domain.model.Role;
import com.aabte.auth.role.domain.model.RoleId;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface RoleDAO extends JpaSpecificationExecutor<Role>, JpaRepository<Role, Long> {
    Optional<Role> findByRoleId(RoleId roleId);
}
